Image processor, image processing method, recording medium, computer program and semiconductor device

ABSTRACT

Abstract of Disclosure 
     The present invention provides an image processor to use images taken by an image pickup device, etc. as an input interface to enter commands, etc.  The present  invention provides an image processor that includes image capturing means for capturing a mirrored moving image partially including a moving target, image generating means for generating an object image expressing a predetermined object according to the movement of the target included in the mirrored moving image captured by the image capturing means and controlling means for combining the object image generated by this image generating means with the captured mirrored moving image and displaying the combined image on a predetermined display device.

Cross Reference to Related Applications

[0001] This application is based upon and claims the benefit of priorityfrom the prior Japanese Patent Applications Nos.2000-307574, filedOctober 6, 2000, and 2001-295098 filed September 26, 2001, the entirecontents of both of which are incorporated herein by reference.

Background of Invention

[0002] The present invention relates to an image processing technologyfor using an image taken by an image pickup apparatus such as a videocamera as an interface for inputting commands, etc.

[0003] A keyboard, mouse, controller, etc. are input devices often usedfor a computer, video game machine, etc. The operator inputs desiredcommands by operating these input devices to render a computer, etc. toexecute processing according to the commands entered. Then, the operatorsees images and listens to sound, etc. obtained as the processingresults from a display device and speaker.

[0004] The operator enters commands by operating many buttons providedon the input device while watching a cursor shown on the display device.

[0005] Such operations greatly depend on operating experiences of theoperator. For example, for a person who never touched the keyboardbefore, entering desired commands using the keyboard is quitetroublesome and time-consuming, and prone to input errors due tomistyping from the keyboard. For this reason, there is a demand for aman-machine interface that will provide the operator with an easy way tooperate.

[0006] On the other hand, with the progress of multimedia technologies,people in general households can now readily enjoy capturing imagesusing a video camera into a computer, etc., editing and displaying theimages on a display device. Such technologies are also used for personalauthentication by analyzing images of a physical body such as a face,extracting characteristic parts thereof to identify individuals.

[0007] Conventionally, these images are used as information to beprocessed by a computer such as editing or analysis. However, imagestaken have not been used so far for a purpose such as entering commandsto a computer, for example.

Summary of Invention

[0008] It is an object of the present invention to provide an imageprocessing technology to use images taken by an image pickup apparatus,etc. as an input interface to enter commands, etc.

[0009] An image processor according to the present invention to solvetheabove-described problems comprises image capturing means forcapturing a mirrored moving image partially including a moving target,image generating means for generating an object image expressing apredetermined object according to the movement of the target included inthe mirrored moving image captured by the image capturing means andcontrolling means for combining the object image generated by this imagegenerating means with the captured mirrored moving image and displayingthe combined image on a predetermined display device.

[0010] The "target" refers to a remarked part of an object (person ormatter, etc.) whose image is taken by an image pickup apparatus thatsupplies the image to an image processor.

[0011] Another image processor according to the present inventioncomprises image capturing means for capturing a mirrored moving imagepartially including a moving target, detecting means for detecting thetarget and the movement component thereof by detecting image featuresbetween the mirrored moving image at the actual time point and theimmediately preceding mirrored moving image, image generating means forgenerating an object image expressing a predetermined object in such away as to change according to the movement component of the targetdetected by the detecting means and controlling means for combining theobject image generated by this image generating means with the capturedmirrored moving image and displaying the combined image on apredetermined display device.

[0012] These image processors generate object images according to themovements of targets included in the mirrored moving image. That is, themovement, color, shape of the object image to be displayed on thedisplay device and if there is a plurality of object images, whichobject image should be displayed, etc. are determined by the movement ofthe target. For example, if the target is the operator, the object isdetermined according to the movement of the operator. Thus, the mirroredmoving image is available as a kind of input interface.

[0013] In these image processors, it is also possible to construct theimage generating means to generate the object image in such a way as tofollow the movement of the detected target.

[0014] It is also possible to comprise means for making preparations forexecuting required processing based on the generated object imageaccording to the movement component of the target.

[0015] It is also possible to further comprise means for comparing acombined image obtained by combining the object image generated by theimage generating means and the mirrored moving image at the actual timepoint, with a template image which is the image of part of the targetincluded in the immediately preceding mirrored moving image, detectingthe part of the combined image whose image feature is most resemblingthe template image and making preparations for executing requiredprocessing based on this object image when the image of the part of thedetected combined image includes the object image.

[0016] By associating the object image with predetermined processing andfurther comprising means for executing the processing linked to theobject image when the movement component of the target detected by thedetecting means satisfies predetermined conditions, it is possible toexecute processing using themovement of the target as an input.

[0017] It is also possible to construct the image processor sothat themirrored moving image includes a plurality of targets, construct thedetecting means to detect themovement components of the plurality oftargets and detect one target based on the respective movementcomponents of the detected plurality of targets, construct the imagegenerating means to change the object image according to the movementcomponent of the one target detected by the detecting means.

[0018] The present invention further provides the following imageprocessing method. This image processing method comprises the steps ofcapturing a mirrored moving image partially including a moving target inthe image processor, generating an object image expressing apredetermined object using the image processor according to the movementof the target included in the captured mirrored moving image andcombining the object image generated with the captured mirrored movingimage and displaying the combined image on a predetermined displaydevice.

[0019] The present invention also provides the computer program. Thiscomputer program renders a computer with a display device connectedthereto to execute the steps of capturing a mirrored moving imagepartially including a moving target, generating an object imageexpressing a predetermined object according to the movement of thetarget included in the captured mirrored moving image and combining theobject image generated with the captured mirrored moving image anddisplaying the combined image on the display device.

[0020] The present invention also provides the semiconductor device.This semiconductor device renders a computer with a display deviceconnected thereto to form the functions of means for capturing amirrored moving image partially including a moving target, means forgenerating an object image expressing a predetermined object accordingto the movement of the target included in the captured mirrored movingimage and means for combining the object image generated with thecaptured mirrored moving image and displaying the combined image on thedisplay device.

Brief Description of Drawings

[0021] These objects and other objects and advantages of the presentinvention will become more apparent upon reading of the followingdetailed description and the accompanying drawings in which:

[0022]FIG. 1 is an overall configuration diagram of an image processingsystem applying the present invention;

[0023]FIG. 2 is a configuration diagram of an image processor accordingto an embodiment of the present invention;

[0024]FIG. 3 is a functional block diagram of the image processoraccording to the embodiment of the present invention;

[0025]FIG. 4 is a flow chart showing a processing procedure ofEmbodiment 1;

[0026]FIG. 5 is a flow chart showing a processing procedure ofEmbodiment 1;

[0027]FIG. 6 illustrates a combined image according to Embodiment 1;

[0028]FIG. 7 illustrates a menu image;

[0029]FIG. 8 is a flow chart showing a processing procedure ofEmbodiment 2;

[0030]FIG. 9 illustrates a combined image according to Embodiment 2;

[0031]FIG. 10 is a view illustrating a drawing using a recursivetexture;

[0032]FIG. 11 is a flow chart showing a processing procedure ofEmbodiment 3;

[0033]FIG. 12 is a flow chart showing a processing procedure ofEmbodiment 3; and

[0034]FIG. 13 illustrates a combined image according to Embodiment 3.

Detailed Description

[0035] An embodiment of the present invention will be specificallydescribed with reference to the drawingsaccompanying herewith.

[0036]FIG. 1 is a configuration example of an image processing systemapplying the present invention.

[0037] This image processing system takes pictures of the operator whosits in front of a display device 3 using an analog or digital videocamera 1. In this way, the image processing system captures movingimages into an image processor 2 consecutively in a time series togenerate mirrored moving images. Of these mirrored moving images, theimage processing system combines object images expressing objects suchas a menu and cursor at positions where remarked objects such as theeyes and hands of the operator (hereinafter the remarked objects arereferred to as "targets") to generate a combined image (this, too,becomes a moving image) and displays this combined image on the displaydevice 3 in real time.

[0038] A mirrored moving image can be generated by subjecting the movingimage captured from the video camera 1 to mirroring (right/leftinversion of image) by the image processor 2, but it is also possible toplace a mirror in front of the video camera 1 and take pictures of amoving image on the mirror surface reflecting the operator by the videocamera 1 to form a mirrored moving image. In any case, a combined imagewhose display mode changes in real time according to the movement of thetarget is displayed on the display device 3.

[0039] The image processor 2 is implemented by a computer that forms therequired functions using a computer program.

[0040] The computer according to this embodiment whose hardwareconfiguration is shown by way of example in FIG.2 has two buses; a mainbus B1 and sub bus B2 to which a plurality of semiconductor devices eachhaving specific functions is connected. These buses B1 and B2 aremutually connected or disconnected via a bus interface INT.

[0041] The main bus B1 is connected to a main CPU 10 which is a mainsemiconductor device, a main memory 11 made up of a RAM, a main DMAC(Direct Memory Access Controller) 12, an MPEG (Moving Picture ExpertsGroup) decoder (MDEC) 13 and a graphic processing unit (hereinafterreferred to as "GPU") 14 incorporating a frame memory 15 which serves asa drawing memory. The GPU 14 is connected with a CRTC (CRT controller)16 for generating a video signal so as to display the data drawn in theframe memory 15 on the display device 3.

[0042] The CPU 10 loads a start program from the ROM 23 on the sub busB2 at the startup via the bus interface INT, executes the start programand operates an operating system. The CPU 10 also controls the mediadrive 27, reads an application program or data from the medium 28mounted in this media drive 27 and stores this in the main memory 11.The CPU 10 further applies geometry processing (coordinate valuecalculation processing) to various data read from the medium 28, forexample, three-dimensional object data (coordinate values of vertices(typical points) of a polygon, etc.) made up of a plurality of basicgraphics (polygons) and generates a display list containinggeometry-processed polygon definition information (specifications ofshape of the polygon used, its drawing position, type, color or texture,etc. of components of the polygon).

[0043] The GPU 14 is a semiconductor device having the functions ofstoring drawing context (drawing data including polygon components),carrying out rendering processing (drawing processing) by readingnecessary drawing context according to the display list notified fromthe main CPU 10 and drawing polygons in the frame memory 15. The framememory 15 can also be used as a texture memory. Thus, a pixel image inthe frame memory can be pasted as texture to a polygon to be drawn.

[0044] The main DMAC 12 is a semiconductor device that carries out DMAtransfer control over the circuits connected to the main bus B1 and alsocarries out DMA transfer control over the circuits connected to the subbus B2 according to the condition of the bus interface INT. The MDEC 13is a semiconductor device that operates in parallel with the CPU 10 andhas the function of expanding data compressed in MPEG (Moving PictureExperts Group) or JPEG (Joint Photographic Experts Group) systems, etc.

[0045] The sub bus B2 is connected to a sub CPU 20 made up of amicroprocessor, etc., a sub memory 21 made up of a RAM, a sub DMAC 22, aROM 23 that records a control program such as operating system, a soundprocessing semiconductor device (SPU: Sound Processing Unit) 24 thatreads sound data stored in the sound memory 25 and outputs as audiooutput, a communication control section (ATM) 26 that transmits/receivesinformation to/from an external apparatus via a network (not shown), amedia drive 27 for setting a medium 28 such as CD-ROM and DVD-ROM and aninput device 31.

[0046] The sub CPU 20 carries out various operations according to thecontrol program stored in the ROM 23. The sub DMAC 22 is a semiconductordevice that carries out control such as a DMA transfer over the circuitsconnected to the sub bus B2 only when the bus interface INT separatesthe main bus B1 from sub bus B2. The input unit 31 is provided with aconnection terminal 32 through which an input signal from an operatingdevice 35 is input, a connection terminal 33 through which an imagesignal from a video camera 1 is input and a connection terminal 34through which a sound signal from the video camera 1 is input.

[0047] This Specification will only explain about images and omitexplanations of sound for convenience.

[0048] In the computer constructed as shown above, and with reference toFIG. 3, the main CPU 10, sub CPU 20 and GPU 14 read and execute apredetermined computer program from the recording medium such as the ROM23 and medium 28, and thereby form a functional block necessary foroperating as the image processor 2, that is, an image input device 101,an image inverter 102, an object data storage device 103, an object datainput device 104, an object controller 105, a superimposing imagegenerator 106, a difference value detector 107 and a display controller108.

[0049] In the relationship with the hardware shown in FIG.1, the imageinput device 101 is formed by the input device 31 and the sub CPU 20that controls the operation thereof, the image inverter 102, the objectdata input device 104, the object controller 105 and the differencevalue detector 107 are formed by the CPU 10 and the superimposing imagegenerator 106 are formed by the GPU 104, and the display controller 108is formed by the GPU 14 and CRTC 16 cooperating with each other. Theobject data storage device 103 is formed in a memory area accessible tothe main CPU 10, for example, the main memory 11.

[0050] The image input device 101 incorporates images taken by the videocamera 1 via the connection terminal 33 of the input device 31. In thecase where the image entered is a digital image, the image input device101 incorporates the image as is. In the case where the image taken andentered is an analog image, the image input device 101 incorporates theimage after converting it from analog to digital.

[0051] The image inverter 102 subjects the image incorporated by theimage input device 101 to mirroring, that is, right/left inversion toform a mirrored moving image.

[0052] The object data storage device 103 stores object data to expressobjects such as a menu (including a submenu), matchstick, cursortogether with identification data thereof.

[0053] The object data input device 104 incorporates necessary objectdata from the object data storage device 103 and sends the object datato the object controller 105. The object data to be incorporated isinstructed by the object controller 105.

[0054] The object controller 105 generates an object image based on theobject data incorporated from the object data input section 104according to the instruction content. Especially, the object controller105 determines the object display condition based on a difference valuesent from the difference value detector 107 and generates an objectimage to realize the display condition. The difference value will bedescribed later.

[0055] The superimposing image generator 106 draws a combined imageobtained by superimposing the mirrored moving image output from theimage inverter 102 on the object image generated by the objectcontroller 105 in the frame memory 15.

[0056] By the way, in addition to generating a combined image bysuperimposing the object image, it is also possible to display theobject image on the mirrored moving image using publicly known imposingprocessing.

[0057] The difference value detector 107 compares the image features ofthe mirrored moving image of the combined image generated by thesuperimposing image generator 106 frame by frame and derives thedifference value of the image features between the mirrored movingimages of the preceding and following frames. Furthermore, thedifference value detector 107 generates a difference image between themirrored moving images of the preceding and following frames asrequired.

[0058] The difference value in the image features is a valuequantitatively expressing a variation per frame of the movementcomponent of the target included in the mirrored moving image. Forexample, the difference value indicates a distance that the target hasmoved in the mirrored moving image or an area between the area after themovement and the area before the movement.

[0059] When a plurality of targets is included within one mirroredmoving image, a difference value in the image features expresses avariation in the movement of each target, and therefore it is possibleto quantitatively calculate the variation in the movement of each targetby calculating this difference value.

[0060] The difference image is an image expressing a variation in themovement per frame of each target included in the mirrored moving imageat every point in time. For example, when a target moves between twomirrored moving images, the difference image is an image made up of theimage of the target before the movement and the image of the targetafter the movement.

[0061] In order to derive the difference value and difference image, thedifference value detector 107 stores a certain mirrored moving image asa "reference image" relative to mirrored moving images of other framesin the main memory 11. The mirrored moving image to be stored may be afull one-frame worth mirrored moving image or may bea mirrored movingimage that is only part of the target because all that is required is tomake it possible to derive a difference value in the image features.

[0062] In the following explanations, whenever a distinction should bemade between an image of part of a target and an image of the rest ofthe target, such an image is called "template image".

[0063] The difference value detected by the difference value detector107 is sent to the object controller 105 and used to control movementsof object images.

[0064] The display controller 108 converts the combined image generatedby superimposing image generator 106 to a video signal and outputs thevideo signal to the display device 3. The display device 3 displays thecombined image (moving image) on a screen using this video signal.

[0065] <Image processing method>

[0066] An embodiment of the image processing method carried out usingthe above-described image processing system will now be explained.

[0067] [Embodiment 1]

[0068] On the display device 3, ,as shown in FIG.6, suppose the imageprocessor 2 displays a combined image consisting of the mirrored movingimage of the operator taken by the video camera 1 and subjected tomirroring with a menu image as an example of an object imagesuperimposed.

[0069] As a target, it is possible to select various objects such as theeyes, mouth, hands, etc. of the operator. Here, a case will be describedwhere the operators hand is the target and instructions are entered tothe menu image by detecting the amount of movement of the hand in thearea in which the menu image is displayed.

[0070] The menu image has a hierarchic structure as shown in FIG.7. Whenthe operator selects "menu" at the top layer, a pull-down imagehighlighting one of "select1", "select2" or "select3" at the lower layeris displayed and when one item is selected from the pull-down image, theprocess determining image (for example, "process 21", "process 22","process 23", "process 24") of the menu at the lower layer of theselected pull-down image are displayed.

[0071] The process determining image is stored in the object datastorage device 103 linked to the program to render the main CPU 10 toexecute the determined process (event) and when a certain processdetermining image is selected, the program linked thereto starts toexecute the corresponding process (event).

[0072] FIG.4 and FIG.5 show the procedure for processing by the imageprocessor 2 to enable such an operation.

[0073] First, with reference to FIG.4, the difference value detector 107updates the mirrored moving image to that of the next frame and when thecombined image generated by the superimposing image generator 106 isthereby updated (step S101), image features of the mirrored moving imageincluded in the preceding and following combined images to be updatedare compared and the difference value is calculated (step S102). Thedifference value calculated here is a value expressing one movement ofthe operators hand in thearea in which the menu image is displayed. Thedifference values calculated are recorded in the main memory 11 andcumulatively added for a certain period of time (step S103). The reasonthat difference values are cumulatively added is that the operators willabout the operation instruction is detected by the image processor 2based on a plurality of movements of the operators hand. If theoperators will about the operation instruction can be checked accordingto the amount of one time movement of the hand, cumulative addition neednot always be performed.

[0074] The difference value detector 107 sends the difference value(cumulative sum) to the object controller 105.

[0075] The object controller 105 determines the color of the menu imageaccording to the difference value (cumulative sum) received from thedifference value detector 107 (step S104). For example, a plurality ofcolors of the menu image is provided and the color is changed one by oneevery time a movement of the hand is detected. It is also possible tochange the color from transparent to semitransparent, opaque, etc. Orthe actual difference value (cumulative sum) is compared with apredetermined threshold (step S105) and if the cumulative sum is smallerthan the threshold (step S105: N), the routine goes back to step S101assuming that it is not sufficient to determine that "menu" of the menuscreen has been selected.

[0076] When the cumulative sum exceeds the threshold (step S105: Y), theobject controller 105 determines that "menu" of the menu screen has beenselected, shows a pull-down image and reports it to the difference valuedetector 107 (step S106).

[0077] Thus, when the cumulative sum of the movement of the operatorshand detected in the area in which the menu image is displayed exceedsthe threshold, the object controller 105 detects that "menu" of the menuimage has been selected and shows the pull-down image. The color of themenu image changes according to the cumulative sum of the amount ofmovement of the hand, and therefore the operator can know a rough amountof additional movement of the hand required to select "menu".

[0078] Furthermore, since the display device 3 shows a mirrored movingimage, the operator can perform the above-described operation in muchthe same way the operator looks in a mirror, providing a man-machineinterface easy-to-operate for the operator.

[0079] Thus, according to FIG.5, when it is detected that "menu" on themenu screen has been selected, that is, the difference value (cumulativesum) has exceeded the threshold, the difference value detector 107stores the image of the operators hand (target) at that time as atemplate image (step S107).

[0080] When the frame is updated and the menu image is thereby replacedby the pull-down image in its subordinate layer and a combined image isshown (step S108), a search is started for the location of the image ofthe operators hand in the new combined image. That is, the differencevalue detector 107 searches for an image that matches the template imagefrom the combined image (step S109).

[0081] More specifically, the difference value detector 107 divides thecombined image into areas in the same size as that of the template imageand searches for the image most resembling the template image from amongthe images in the respective areas after the division. The image mostresembling the template image in the area is, for example, when the sumtotal of absolute values (or squares) of differences between pixels ofthe images compared can be expressed as distances, an image whosedistance from the template image is a minimum.

[0082] When a matched image is found (step S110: Y), it is determinedwhether the matched image is a pull-down image or not (step S111). Ifthe matched image is a pull-down image (step S111: Y), the area of thepull-down image is detected from "select1", "select2" or "select3" (stepS112). The detected pull-down image becomes the pull-down imageindicated and selected by the operator. Information on the selectedpull-down image is reported from the difference value detector 107 tothe object controller 105.

[0083] The object controller 105 reads a process determining imageaccompanying the selected pull-down image from the object data storagedevice 103 and generates an object image to which this processdetermining image is attached (step S113).

[0084] In this way, thedisplay device 3 shows how the menus are selectedone after another by the operator.

[0085] In the example in FIG.7, the pull-down image of "select2" isselected from the menu image at the top layer and the processdetermining images ("process 21", "process 22", "process 23"and"process24") accompanying the pull-down image of "select2" are displayed.

[0086] The template image is replaced by a new one for every frame.

[0087] That is, the difference value detector 107 discards the templateimage used for the preceding frame and stores the above-describedmatched image (image of the operators hand used to select the pull-downimage) as a new template image (step S114). Then, the routine returns tostep S108 to specify any one of the process determining images ("process21", "process 22", "process 23"and"process 24") as shown above.

[0088] In step S111, when the matched image is outside the area of thepull-down image but is any one of the process determining images withinthe process determining image area (step S111: N, S115: Y), the processdetermining image is assumed to have been selected and the content ofthe process linked thereto is determined, that is, the program is madeexecutable and the process using the menu image is finished (step S118).

[0089] When the matched image is outside the areas of the pull-downimage and the process determining image but within the menu image area(step S111: N, S115: N, S116: Y), this means that the operator attemptsto select another pull-down image, and therefore the routine discardsthe template image, stores the matched image as a new template image andreturns to step S108 (step S117).

[0090] In step S110, when no matched image to be compared is found (stepS110: N) or when a matched image is found but is an image outside thearea of the menu image, the process by the menu image is finished atthat time (step S111: N, S115: N, S116: N).

[0091] By carrying out processing according to the menu image in theabove procedure, the operator can easily select the process with adesired content while watchingthe own mirrored moving image shown on thescreen of the display device 3. Furthermore, the operator can enterinstructions while checking the own behavior on the screen at any time,which prevents the operator from averting his/her eyes from the displaydevice 3 as in the case of using an input device such as a keyboard.

[0092] [Embodiment 2]

[0093] The image processing system according to this embodiment links anobject image to a program that causes the main CPU 10 to execute anevent to be subjected to image processing so that processing of therelevant event is executed according to the action of the operatorwithin the mirrored moving image on the object image.

[0094] As an example of an object image to be superimposed on themirrored moving image, this embodiment shows a case of using an image ofa matchstick and an image of a flame expressing that the matchstickignites and burns.

[0095] As a premise, the image of thematchstick, which is the objectimage, is linked beforehand to a program to display an ignitionanimation indicating that the matchstick has ignited on the displaydevice 3. Then, when the operator in the mirrored moving image behavesas if he/she struck the image of the match within the combined image,the ignition animation is designed to appear in the ignition part oftheimage of the matchstick. The image of the flame is displayed when theoperator strikes the image of the matchstick.

[0096] The image of the flame can be generated using a technique of, forexample, recursive texture drawing.

[0097] The "recursive texture drawing" refers to a drawing technique ofreferencing an image of an object rendered by texture mapping as textureof another image and carrying out texture mapping recursively. "Texturemapping" is a technique of rendering an image of an object to enhancethe texture of the image by pasting bitmap data of the texture to thesurface of the object and can be implemented by also using the framememory 15 as a texture memory. When carrying out such recursive texturedrawing, gouraud shading is applied to a polygon on which the texture isdrawn, that is, the brightness at vertices of the polygon is calculatedand the brightness inside the polygon is calculated by interpolating thebrightness of each vertex (this technique is called "gouraud shadingdrawing").

[0098] To express the flame image, the positions of vertices of a meshwhich is the source of the flame image are shifted using random numbersas shown in FIG.10 and the positions of new vertices are determined. Thebrightness at the vertices is also determined based on random numbers.The positions of the vertices and brightness at the vertices aredetermined every time the frame is updated. Every unit of the mesh whichis the source of the flame image becomes a polygon.

[0099] On each polygon, the image that becomes the basis of the flamedrawn in the frame memory 15 is formed through the above-describedrecursive texture drawing andtheabove-described gouraud shading isapplied based on the brightness at each vertex of the polygon. Thismakes it possible to express a rising air current caused by the flame,shimmering, attenuation of the flame in a more realistic way.

[0100] Suppose the image processor 2 shows a combined image with theimage of a matchstick superimposed on the mirrored moving image of theoperator on the display device 3. Here, suppose the target is theoperators hand. By detecting theamount of movement of the hand in thearea in which the image of the matchstick is displayed, the programlinked to the image of the matchstick is executed and the ignitionanimation is displayed on the display device 3.

[0101]FIG. 8 shows the processing procedure using the image processor 2to realize such an operation.

[0102] When the mirrored moving image is updated to the image of thenext frame and the combined image generated by the superimposing imagegenerator 106 is thereby updated (step S301), the difference valuedetector 107 compares image features of the mirrored moving imagesincluded in the combined images before and after the updating,calculates a difference value of the image in the ignition section ofthe image of the matchstick and generates a difference image of theignition section of the image of the matchstick (step S202). Thedifference value calculated here is a value that quantitativelyexpresses themovement of the hand in the ignition section of the imageof the matchstick. The difference value generated is an image made up ofthe images of the hand before and after moving the hand in the ignitionsection of the image of the matchstick.

[0103] The calculated difference value is recorded in the main memory 11and cumulatively added for a certain period of time (step S203).

[0104] The difference value detector 107 sends the cumulative sum, whichis the cumulative sum of thedifference images and difference values tothe object controller 105.

[0105] The object controller 105 determines the color of the differenceimage according to the cumulative sum received from the difference valuedetector 107 and generates a flame image based on this difference image(step S204). The flame image is generated, for example, by dividing thedifference image into meshes and using the aforementioned recursivetexture based on these meshes. The color of the flame image isdetermined according to the color of the difference image. The flameimage generated is superimposed on the ignition section of the image ofthe matchstick.

[0106] In this way, the flame image with the color according totheamount of movement of the hand added is displayed in the area showingthe movement of the hand in the ignition section of the image of thematchstick.

[0107] Determining the color of the flame image according to thecumulative sum of difference values makes it possible, for example, toexpress how the color of the flame image displayed in the ignitionsection of the matchstick gradually changes according to the amount ofmovement of the hand.

[0108] Then, the object controller 105 compares the value indicating thecolor of the flame image with a predetermined threshold (step S205). Forexample, if the color of the flame image is expressed by R, G and Bvalues, the sum of their respective values can be used.

[0109] When the value indicating the color is equal to or greater thanthe threshold (step S205: Y), the object controller 105 determines toexecute the program that displays the ignition animation indicating thatthe match has ignited (step S206).

[0110] That is, whether or not to start the ignition animation isdetermined according to the color of the flame image. For example, whenthe color of the flame image changes from red to yellow according to theamount of movement of the hand, theignition animation starts when theflame images turns yellow. The operator can know a rough amount ofadditional movement of the hand required to start the ignitionanimation.

[0111] The superimposing image generator 106 generates a combined imagesuperimposing theignition animation on the object image including thematchstick image and flame image, on the mirrored moving image obtainedfrom the video camera 1 (step S207). The ignition animation is displayedin the ignition section of the matchstick image.

[0112] When the value indicating the color is smaller than the threshold(step S205: N), the object controller 105 sends the object imagesuperimposing the flame image on the matchstick image to thesuperimposing image generator 106. The superimposing image generator 106generates a combined image by superimposing this object image on themirrored moving image obtained from the video camera 1 (step S208).

[0113] Then, if, for example, an instruction for finishing theprocessing is received from the operation device 35, the processing isfinished (step S209: Y). If no instruction for finishing the processingis received (step S209: N), the routine returns to step S201 and thedisplay controller 108 displays the combined image generated in stepS207 or step S208 on the display device 3.

[0114] As shown above, the system executes the process of determiningwhether or not to execute the program for displaying the ignitionanimation linked to the matchstick image according to how much theoperator moves his/her hand in the ignition section of the matchstickimage.

[0115] Since the operator can perform operations for executing variousevents while watching the mirrored moving image, it is possible toperform input operations for executing processes more easily thanconventional operations using input devices such as a keyboard andmouse.

[0116] [Embodiment 3]

[0117] Another embodiment will now be explained. As a premise, supposethe image processor 2 shows a combined image with a cursor (pointer)image, which is an example of an object image, superimposed on themirrored moving image of the operator on the display device 3 as shownin FIG.13 (a). Also suppose a plurality of targets such as the hand,eyes, mouth of the operator are included in the mirrored moving image.

[0118] Here, a case will be explained whereby focusing on the movementof the operators hand from the plurality of these targets, the cursorimage is expressed in such a way as to follow this movement of the hand.

[0119] As shown in FIG.13 (a), the cursor image is an image like a facewith an emphasis put on the eyes, which allows the eyes to be orientedtoward the target. Furthermore, the cursor image moves following themovement of the target. That is, when the cursor image is distant fromthe target, the cursor image moves toward the target and when the cursorimage catches the target, the cursor image follows the movement of thetarget.

[0120] FIG. 11 and FIG. 12 show the processing procedure using the imageprocessor 2 to realize such an operation.

[0121] According to FIG. 11, when the mirrored moving image is updatedto the image of the next frame and the combined image generated by thesuperimposing image generator 106 is thereby updated (step S301), thedifference value detector 107 compares image features of the mirroredmoving image included in the combined images before and after theupdating and calculates the difference value thereof (step S302). Thedifference value calculated here is a value quantifying the movements ofthe hands, eyes, mouth, etc. of the operator, which become candidates ofthe target in the mirrored moving image.

[0122] The difference value detector 107 sends the difference value ofeach target to the object controller 105.

[0123] The object controller 105 detects one target based on thedifference value of each target sent from the difference value detector107 (step S303). For example, the object controller 105 detects a targetwhose difference value reaches a maximum. In this example, suppose theoperators hand is detected as the target.

[0124] Upon detecting the target, the object controller 105 determineshow the cursor image is displayed according to the target.

[0125] First, the object controller 105 determines whether the target inthe combined image updated in step S310 is outside the cursor image ornot (step S304). If the target is within the cursor image (step S304:N), the object controller 105 determines that the cursor image hascaught the target (step S308).

[0126] If the target is outside the cursor image (step S304: Y), theobject controller 105 determines that the cursor image has not caughtthe target and carries out processing for determining how the cursorimage is displayed. That is, the object controller 105 generates acursor image so that the eyes in the cursor image are oriented towardthe target.

[0127] Furthermore, the object controller 105 determines the speed atwhich the cursor image moves toward the target according to the distancebetween the cursor image and target (step S306). This speed is adjustedto increase as the cursor image moves away from the target. This makesit possible to obtain an image in which the cursor moves toward thetarget faster as the cursor image stays farther from the target.

[0128] The superimposing image generator 106 superimposes such a cursorimage on the mirrored moving image of the next frame and therebygenerates a combined image as shown in FIG. 13 (a) (step S307). Then,the routine goes back to step S301 and performs the same operation forthe combined image generated.

[0129] The routine carries out the operations of step S301 to S307 untilthe cursor image catches the target, that is, until it is determined instep S304 that the target is within the cursor image.

[0130] Such operations can provide an image as shown in FIG. 13 (a) inwhich the eyes in the cursor image are oriented toward the target (hand)and the cursor image chases after the target.

[0131] Then, according to FIG. 12, when the cursor image catches thetarget, the difference value detector 107 stores the image of the targetat that time as a template image (step S309). For example, thedifference value detector 107 stores thesection of the mirrored movingimage that overlaps with the cursor image as the template image.

[0132] Then, the difference value detector 107 acquires the mirroredmoving image of the next frame from the image inverter 102 (step S310).The difference value detector 107 searches for theposition of an imagethat matches the stored template image from among the acquired mirroredmoving images (step S311).

[0133] More specifically, the difference value detector 107 divides theacquired mirrored moving image into areas of the same size as thetemplate image and searches for an image in the area most resembling thetemplate image from among the images in the respective divided areas.Upon detecting the matched image as a result of the search, thedifference value detector 107 reports the position of the detected imageto the object controller 105.

[0134] The object controller 105 determines the position reported fromthe difference value detector 107 as the position of the cursor imagefor the next combined image (step S312).

[0135] The superimposing image generator 106 superimposes the cursorimage at the position determined in step S312 by the object controller105 on the same mirrored moving image as the mirrored moving imageacquired in step S310 by the difference value detector 107 and therebygenerates a combined image as shown in FIG. 13 (b) (step S313). Then,the frame is updated and the display controller 108 displays thecombined image generated onthe display device 3 (step S314).

[0136] Repeating the above-describedoperations after the target iscaught (step S309 to step S314) obtains an image in which the cursorimage follows the target. That is, when the cursor image catches thetarget (hand) as shown in FIG. 13 (b), the cursor image is displayedthereafter following the target wherever the target moves. Even when theoperator extends the hand as shown in FIG. 13 (b) to FIG. 13 (c), thecursor image is displayed at the tip of the extended hand of theoperator together with the movement of the hand recognized as thetarget.

[0137] Use of the cursor image allows the operator to know at a glancewhich position of the part of the own body is functioning as the cursorwhen selecting a process from the menu image as shown in Embodiment 1,for example.

[0138] Furthermore, if, for example, the trace of the movement of thecursor image is set to be kept and displayed, it is possible to show thetrace of themovement of the target on the display device 3. This makesit possible to show, for example, pictures and characters, etc. drawn inthe space on the display device 3.

[0139] As is clear from the foregoing explanations, when the operatorneeds to enter data, etc. the presentinvention allows the operator toenter or select the data easily using the mirrored moving image whilewatching the combined image displayed on the display device, and canthereby provide a user-friendly input interface without the need to getaccustomed thereto.

[0140] Various embodiments and changes may be made thereunto withoutdeparting from the broad spirit and scope of the invention. Theabove-described embodiment intended to illustrate the present invention,not to limit the scope of the present invention. The scope of thepresent invention is shown by the attached claims rather than theembodiment. Various modifications made within the meaning of anequivalent of the claims of the invention and within the claims are tobe regarded to be in the scope of the present invention.

Claims
 1. An image processor comprising:image capturing means forcapturing a mirrored moving image at least partially including a movingtarget;image generating means for generating an object imagerepresenting a predetermined object according to the movement of thetarget included in the mirrored moving image; andcontrolling means forcombining the object image generated by said image generating means withsaid captured mirrored moving image and for displaying said combinedimage on a predetermined display device.
 2. An image processorcomprising:image capturing means for capturing a mirrored moving imagein a time series, said mirrored moving image at least partiallyincluding a moving target;detecting means for detecting said target anda movement component thereof by detecting image features between amirrored moving image at an actual time point and an immediatelypreceding mirrored moving image; image generating means for generatingan object image representing a predetermined object in such a way as tochange according to said movement component of the target detected bysaid detecting means; andcontrolling means for combining said objectimage generated by the image generating means with said capturedmirrored moving image and for displaying said combined image on apredetermined display device.
 3. The image processor according to claim2, wherein said image generating means is operable to generate saidobject image in such a way as to follow said movement of said detectedtarget.
 4. The image processor according to claim 2, further comprisingmeans for making preparations for executing required processing based onsaid generated object image according to said movement component of saidtarget.
 5. The image processor according to claim 2, further comprisingmeans for comparing a combined image obtained by combining said objectimage generated by said image generating means and said mirrored movingimage at the actual time point with a template image, which is an imageof part of said target included in said immediately preceding mirroredmoving image, for detecting a part of said combined image whose imagefeatures most resemble said template image, and for making preparationsfor executing required processing based on said object image when theimage of said part of said combined image includes said object image. 6.The image processor according to claim 2, further comprising means forexecuting predetermined processing which is linked to said object imagewhen said movement component of said target detected by said detectingmeans satisfies predetermined conditions.
 7. The image processoraccording to claim 2, wherein: said mirrored moving image includes aplurality of said targets,said detecting means is operable to detectsaid movement components of said plurality of targets and to detect onetarget based on respective movement components of said detectedplurality of targets, and said image generating means is operable tochange said object image according to said movement component of saidone target detected by said detecting means.
 8. An image processingmethod, comprising:capturing a mirrored moving image at least partiallyincluding a moving target in an image processor; generating an objectimage representing a predetermined object using said image processoraccording to a movement of said target included in said capturedmirrored moving image; andcombining said generated object image withsaid captured mirrored moving image and displaying said combined imageon a predetermined display device.
 9. A recording medium containing acomputer program for causing a computer with a display device connectedthereto to execute steps comprising:capturing a mirrored moving image atleast partially including a moving target; generating an object imagerepresenting a predetermined object according to movement of said targetincluded in said captured mirrored moving image; andcombining saidobject image with said captured mirrored moving image and displayingsaid combined image on said display device.
 10. (Cancelled)
 11. Asemiconductor device for causing a computer with a display deviceconnected thereto to perform functions comprising:capturing a mirroredmoving image at least partially including a moving target; generating anobject image representing a predetermined object according to movementof the target included in said captured mirrored moving image;andcombining said object image with said captured mirrored moving imageand displaying the combined image on said display device.
 12. A graphicsprocessor, comprising: an image input device operable to capture imageframes from a camera in a time series such that said image framesinclude at least some features of a user of the graphics processor; animage inverter operable to produce mirrored image frames from saidcaptured image frames, one or more of said features of said mirroredimage frames being at least part of a target; an object image generatoroperable to produce object frames, said object frames representing oneor more predetermined objects for display; a superimposing imagegenerator operable to combine said mirrored image frames and said objectimage frames to produce combined image frames; a detector operable todetermine movement of said target from frame to frame and to quantifysaid movement; and a controller operable to cause adjustments to saidobject frames in response to said quantification of said movement ofsaid target and for displaying said combined image frames on a displaydevice.
 13. The graphics processor of claim 12, wherein said objectsinclude menu indicia; and said controller is operable to determinewhether said movement of said target indicates a desire by said user toselect said menu indicia based on said quantification of said movementof said target by said detector, and to execute one or more furthergraphics processes based on said menu selection made by said user. 14.The graphics processor of claim 12, wherein said objects include acursor; and said controller is operable to determine whether saidmovement of said target indicates a desire by said user to at least oneof acquire and manipulate said cursor based on said quantification ofsaid movement of said target by said detector, and to execute one ormore further graphics processes based on manipulation of said cursor bysaid user.
 15. The graphics processor of claim 14, wherein said targetincludes said cursor when said user has acquired said cursor.
 16. Amethod, comprising: capturing image frames from a camera in a timeseries such that said image frames include at least some features of auser of a graphics processor; producing mirrored image frames from saidcaptured image frames, one or more of said features of said mirroredimage frames being at least part of a target; producing object frames,said object frames representing one or more predetermined objects fordisplay; superimposing said mirrored image frames with said object imageframes to produce combined image frames; determining movement of saidtarget from frame to frame and quantifying said movement; adjusting saidobject frames in response to said quantification of said movement ofsaid target; and displaying said combined image frames on a displaydevice.
 17. The method of claim 16, wherein said objects include menuindicia; and said method further includes determining whether saidmovement of said target indicates a desire by said user to select saidmenu indicia based on said quantification of said movement of saidtarget, and executing one or more further graphics processes based onsaid menu selection made by said user.
 18. The method of claim 16,wherein said objects include a cursor; and said method further includesdetermining whether said movement of said target indicates a desire bysaid user to at least one of acquire and manipulate said cursor based onsaid quantification of said movement of said target, and executing oneor more further graphics processes based on manipulation of said cursorby said user.
 19. The method of claim 18, wherein said target includessaid cursor when said user has acquired said cursor.